<div class="grid_7">
    <div class="box">
        <h2>
            <a href="#" id="toggle-tables">FEATURES |  
                <?= $this->management_model->get_make('CAR', $make_id)->make; ?> |
                <?= $this->management_model->get_model('CAR', $model_id)->model; ?> |
                <?= $this->management_model->get_version('CAR', $version_id)->version; ?> 
            </a>
        </h2>
        <div class="block" >
            <form name="admin-form" action="<?= base_url(); ?>admin/management/version_feature_insert" method="post">
                <fieldset>
                    <legend>FEATURES : <span class="red"> Interior </span> </legend>
                    <div class="field" >
                        <?php
                        if ($this->session->flashdata('message')) {
                            $msg = $this->session->flashdata('message');
                            echo '<font color="red">' . $msg . '</font>';
                        }
                        ?> 
                    </div>
                    <div class="field" style="float:left">
                        <label> Select Interior</label>
                        <select name="version_feature" style="width: 389px">
                            <option value=""> Select Interior Feature</option>
                            <?php foreach ($feature_interior as $feature_interior): ?>
                                <option value="<?= $feature_interior->slno . ',' . $feature_interior->code; ?>"> <?= $feature_interior->feature; ?> </option>
                            <?php endforeach; ?>
                        </select>
                        <input type="hidden" name="version_id" value="<?= $version_id; ?>"/>
                        <input type="hidden" name="model_id" value="<?= $model_id; ?>"/>
                        <input type="hidden" name="make_id" value="<?= $make_id; ?>"/>
                        <input type="submit" value="Add Now" name="insert_feature"/>
                    </div>
                    <div style="float:right;">
                        <?php $img = $this->management_model->get_version_image('CAR', $version_id);
                        if ($img != '') { ?>
                            <img style="border: 1px solid #CCC; padding: 3px" src="<?= base_url() ?>assets/images/data/car/version/<?= $img; ?>" height="75" width="188" align="center"/>
                        <?php } ?>
                    </div>

                </fieldset>
            </form>

            <fieldset>
                <legend class="red">Car Interior :</legend>
                <?php foreach ($interior as $interior): ?>
                    <div class="field">
                        <input type="text" size="70" disabled="disabled" value="<?= $interior->feature; ?>"/>
                        <a href="<?= base_url(); ?>admin/management/delete_features/<?= $interior->slno; ?>/<?= $make_id; ?>/<?= $model_id; ?>/<?= $version_id; ?>" class="link-button" style="float: right" onclick="return confirm('Are you sure you want to Delete?')"> Delete </a>

                    </div>
                <?php endforeach; ?>

            </fieldset>

        </div>
    </div> <!-- END OF BOX -->
</div>
<!-- comfort start -->
<div class="grid_7">
    <div class="box">
        <h2>
            <a href="#" id="toggle-tables">FEATURES |  
                <?= $this->management_model->get_make('CAR', $make_id)->make; ?> |
                <?= $this->management_model->get_model('CAR', $model_id)->model; ?> |
                <?= $this->management_model->get_version('CAR', $version_id)->version; ?> 
            </a>
        </h2>
        <div class="block" >
            <form name="admin-form" action="<?= base_url(); ?>admin/management/version_feature_insert" method="post">
                <fieldset>
                    <legend>FEATURES : <span class="red"> Comfort & Convenience </span> </legend>
                    <div class="field" >
                        <?php
                        if ($this->session->flashdata('message')) {
                            $msg = $this->session->flashdata('message');
                            echo '<font color="red">' . $msg . '</font>';
                        }
                        ?> 
                    </div>
                    <div class="field" style="float:left">
                        <label> Select Car Comfort & Convenience</label>
                        <select name="version_feature" style="width: 389px">
                            <option value=""> Select Comfort & Convenience Feature</option>
                            <?php foreach ($feature_comfort as $feature_comfort): ?>
                                <option value="<?= $feature_comfort->slno . ',' . $feature_comfort->code ?>"> <?= $feature_comfort->feature; ?> </option>
                            <?php endforeach; ?>
                        </select>
                        <input type="hidden" name="version_id" value="<?= $version_id; ?>"/>
                        <input type="hidden" name="model_id" value="<?= $model_id; ?>"/>
                        <input type="hidden" name="make_id" value="<?= $make_id; ?>"/>
                        <input type="submit" value="Add Now" name="insert_feature"/>
                    </div>
                    <div style="float:right;">
                        <?php $img = $this->management_model->get_version_image('CAR', $version_id);
                        if ($img != '') { ?>
                            <img style="border: 1px solid #CCC; padding: 3px" src="<?= base_url() ?>assets/images/data/car/version/<?= $img; ?>" height="75" width="188" align="center"/>
                        <?php } ?>
                    </div>

                </fieldset>
            </form>

            <fieldset>
                <legend class="red">Car Comfort & Convenience :</legend>
                <?php foreach ($comfort as $comfort): ?>
                    <div class="field">
                        <input type="text" size="70" disabled="disabled" value="<?= $comfort->feature; ?>"/>
                        <a href="<?= base_url(); ?>admin/management/delete_features/<?= $comfort->slno; ?>/<?= $make_id; ?>/<?= $model_id; ?>/<?= $version_id; ?>/2" class="link-button" style="float: right" onclick="return confirm('Are you sure you want to Delete?')"> Delete </a>

                    </div>
                <?php endforeach; ?>

            </fieldset>

        </div>
    </div> <!-- END OF BOX -->
</div>
<!-- comfort ends -->
<!-- exterior start -->
<div class="grid_7">
    <div class="box">
        <h2>
            <a href="#" id="toggle-tables">FEATURES |  
                <?= $this->management_model->get_make('CAR', $make_id)->make; ?> |
                <?= $this->management_model->get_model('CAR', $model_id)->model; ?> |
                <?= $this->management_model->get_version('CAR', $version_id)->version; ?> 
            </a>
        </h2>
        <div class="block" >
            <form name="admin-form" action="<?= base_url(); ?>admin/management/version_feature_insert" method="post">
                <fieldset>
                    <legend>FEATURES : <span class="red"> Exterior </span> </legend>
                    <div class="field" >
                        <?php
                        if ($this->session->flashdata('message')) {
                            $msg = $this->session->flashdata('message');
                            echo '<font color="red">' . $msg . '</font>';
                        }
                        ?> 
                    </div>
                    <div class="field" style="float:left">
                        <label> Select Car Exterior</label>
                        <select name="version_feature" style="width: 389px">
                            <option value=""> Select Comfort & Convenience Feature</option>
                            <?php foreach ($feature_exterior as $feature_exterior): ?>
                                <option value="<?= $feature_exterior->slno . ',' . $feature_exterior->code ?>"> <?= $feature_exterior->feature; ?> </option>
                            <?php endforeach; ?>
                        </select>
                        <input type="hidden" name="version_id" value="<?= $version_id; ?>"/>
                        <input type="hidden" name="model_id" value="<?= $model_id; ?>"/>
                        <input type="hidden" name="make_id" value="<?= $make_id; ?>"/>
                        <input type="submit" value="Add Now" name="insert_feature"/>
                    </div>
                    <div style="float:right;">
                        <?php $img = $this->management_model->get_version_image('CAR', $version_id);
                        if ($img != '') { ?>
                            <img style="border: 1px solid #CCC; padding: 3px" src="<?= base_url() ?>assets/images/data/car/version/<?= $img; ?>" height="75" width="188" align="center"/>
                        <?php } ?>
                    </div>

                </fieldset>
            </form>

            <fieldset>
                <legend class="red">Car Exterior :</legend>
                <?php foreach ($exterior as $exterior): ?>
                    <div class="field">
                        <input type="text" size="70" disabled="disabled" value="<?= $exterior->feature; ?>"/>
                        <a href="<?= base_url(); ?>admin/management/delete_features/<?= $exterior->slno; ?>/<?= $make_id; ?>/<?= $model_id; ?>/<?= $version_id; ?>/2" class="link-button" style="float: right" onclick="return confirm('Are you sure you want to Delete?')"> Delete </a>

                    </div>
                <?php endforeach; ?>

            </fieldset>

        </div>
    </div> <!-- END OF BOX -->
</div>
<!-- exterior ends -->
<!-- safety ends -->
<div class="grid_7">
    <div class="box">
        <h2>
            <a href="#" id="toggle-tables">FEATURES |  
                <?= $this->management_model->get_make('CAR', $make_id)->make; ?> |
                <?= $this->management_model->get_model('CAR', $model_id)->model; ?> |
                <?= $this->management_model->get_version('CAR', $version_id)->version; ?> 
            </a>
        </h2>
        <div class="block" >
            <form name="admin-form" action="<?= base_url(); ?>admin/management/version_feature_insert" method="post">
                <fieldset>
                    <legend>FEATURES : <span class="red"> Safety </span> </legend>
                    <div class="field" >
                        <?php
                        if ($this->session->flashdata('message')) {
                            $msg = $this->session->flashdata('message');
                            echo '<font color="red">' . $msg . '</font>';
                        }
                        ?> 
                    </div>
                    <div class="field" style="float:left">
                        <label> Select Car Safety</label>
                        <select name="version_feature" style="width: 389px">
                            <option value=""> Select Safety Feature</option>
                            <?php foreach ($feature_safety as $feature_safety): ?>
                                <option value="<?= $feature_safety->slno . ',' . $feature_safety->code ?>"> <?= $feature_safety->feature; ?> </option>
                            <?php endforeach; ?>
                        </select>
                        <input type="hidden" name="version_id" value="<?= $version_id; ?>"/>
                        <input type="hidden" name="model_id" value="<?= $model_id; ?>"/>
                        <input type="hidden" name="make_id" value="<?= $make_id; ?>"/>
                        <input type="submit" value="Add Now" name="insert_feature"/>
                    </div>
                    <div style="float:right;">
                        <?php $img = $this->management_model->get_version_image('CAR', $version_id);
                        if ($img != '') { ?>
                            <img style="border: 1px solid #CCC; padding: 3px" src="<?= base_url() ?>assets/images/data/car/version/<?= $img; ?>" height="75" width="188" align="center"/>
                        <?php } ?>
                    </div>

                </fieldset>
            </form>

            <fieldset>
                <legend class="red">Car safety :</legend>
                <?php foreach ($safety as $safety): ?>
                    <div class="field">
                        <input type="text" size="70" disabled="disabled" value="<?= $safety->feature; ?>"/>
                        <a href="<?= base_url(); ?>admin/management/delete_features/<?= $safety->slno; ?>/<?= $make_id; ?>/<?= $model_id; ?>/<?= $version_id; ?>/2" class="link-button" style="float: right" onclick="return confirm('Are you sure you want to Delete?')"> Delete </a>

                    </div>
                <?php endforeach; ?>

            </fieldset>

        </div>
    </div> <!-- END OF BOX -->
</div>
<!-- safety ends -->